﻿namespace Awsc.DataAcquisitionSys.Api.Models
{
    public class ReportDataConfig
    {
        public string Key { get; set; }
        public int Value { get; set; }
        public string DataType { get; set; } // 数据类型
        public string Unit { get; set; }
        public string ModeName { get; set; }
        public bool IsCoil
        {
            get
            {
                return DataType == "bool";
            }
        }

        public override string ToString()
        {
            return $"{Key}: {Value}";
        }
    }
}
